<{Tinclude "commom/admin_header"}>
 <section id="container" >
      
      <!--顶部-->
      <{Tinclude"commom/admin_inner_header"}>
      <!--顶部-->
      
       <{Tinclude"commom/admin_left_menu"}>
       
       <section id="main-content">
          <section class="wrapper">
          	<h3><i class="<{if $___menuinfo["iconclass"]}><{$___menuinfo["iconclass"]}><{else}>fa fa-list-ul<{/if}>"></i><{$___menuinfo["base_name"]}></h3>
                <div class="row mt">
                    <div class="col-md-12">
                       <div class="form-panel">  
                           
                           
                           <div class='col-md-6'>
                               <a class='btn btn-theme02 btn-sm' href="<{echo Common::RewriteUrl("Building","roomadd");}>"><span class="fa fa-columns"></span>添加</a>
                               
                           </div>  
                             <div class="col-md-6 text-right">
                                   
                                 <form class="form-inline" method="post" action="<{echo Common::RewriteUrl($jp_arg["c"],$jp_arg["a"]);}>">
  <div class="form-group">
    <label for="exampleInputName2">房间编号</label>
    <input type="text" name="room_no" value="<?php if(isset($jp_arg['room_no']))echo $jp_arg['room_no'];?>" class="form-control" id="exampleInputName2" placeholder="请输入房间编号">
  </div>
  <button type="submit" class="btn btn-default">搜索</button>
</form>
                                   
                                   
                               </div>
                           <div class='clearfix'></div>
                           <div class='margin_top20'></div>
                           <div class="col-lg-12">
                           <div class="row">
                               
                         
                     <{if $list}>           
                               
                             <section id="no-more-tables">             

  <table class="table table-striped table-condensed table-hover cf">
      <thead class="cf">
        <tr>
          <th>缩略图</th>
          <th>房间编号</th>
          <th>租金</th>
          <th>位于</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        
          <{foreach $list as $item}>
          <tr>
              <td data-title="缩略图" class="jphidden-phone"><a href="<{echo Common::RewriteUrl("Building","roomedit","&id=".$item["id"]);}>" ><img src="<{$item["thumb"]}>" class="img-responsive img-thumbnail" /></a></td>
              <td data-title="房间编号"><{$item["room_no"]}></td>
              <td data-title="租金"><{$item["rent"]}>元</td>
              <td data-title="位于">
                <{$item["local"]}> ,<{$item["layer_id"]}>楼
              </td>
              <td data-title="操作">
              <div class="btn-group">  
                      <a class="btn btn-primary btn-xs" href="<{echo Common::RewriteUrl("Building","roomedit","&id=".$item["id"]);}>" ><span class="glyphicon glyphicon-edit"></span></a><a class="btn btn-danger btn-xs btndelete" data-href="<{echo Common::RewriteUrl("Building","roomdelete","&id=".$item["id"]);}>" href="javascript:void(0);"><span class="glyphicon glyphicon-trash"></span></a>
              </div>
              </td>
          </tr>
          <{/foreach}>
         
      </tbody>
  </table>

                                 </section>
                              
                          <div class="col-md-12 text-center">
                           <?php Temp::Tinclude("commom/pager");?>
                           </div>
                             <{else}>
                             <div class="col-md-12 col-xs-12">
                                 <h4 class="text-center">数据为空</h4>
                             </div>
                              <{/if}> 
                               
                               
                           </div>
                           </div>
                           <div class="clearfix"></div>
                           
                           
 
                           
                           
                           
                       </div>
                    </div>
                </div>
          </section>
       </section>
 </section>
<script>
   $(".btndelete").click(function(){
       var url=$(this).data("href");
       if(window.confirm("确定要删除吗?")){
           window.location.href=url;
       }
   });
</script>
<{Tinclude"commom/admin_footer"}>